<?php
if (!defined ('TYPO3_MODE')) 	die ('Access denied.');

$TCA["user_farm_branches_regions"] = array(
	"ctrl" => array(
		'title' => 'LLL:EXT:user_farm_branches/locallang_db.xml:user_farm_branches_regions',
		'label' => 'name',
		'tstamp' => 'tstamp',
		'crdate' => 'crdate',
		'cruser_id' => 'cruser_id',
		'default_sortby' => 'ORDER BY name',
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
		'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY).'icon_user_farm_branches_regions.gif'
	),
	"feInterface" => array(
		"fe_admin_fieldList" => 'name'
	)
);

$TCA["user_farm_branches"] = array (
	"ctrl" => array (
		'title'     => 'LLL:EXT:user_farm_branches/locallang_db.xml:user_farmbranches_branches',		
		'label'     => 'name',	
		'tstamp'    => 'tstamp',
		'crdate'    => 'crdate',
		'cruser_id' => 'cruser_id',
		'default_sortby' => "ORDER BY crdate",	
		'delete' => 'deleted',
		'dividers2tabs' => 1,	
		'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY).'tca.php',
		'iconfile'          => t3lib_extMgm::extRelPath($_EXTKEY).'icon_user_farmbranches_branches.gif',
	),
	"feInterface" => array (
		"fe_admin_fieldList" => "name, description, region_id, leader_id, group_id",
	)
);

t3lib_div::loadTCA("be_groups");
$GLOBALS['TCA']['be_groups']['columns']['title']['config']['max'] = 255;

if (TYPO3_MODE=='BE')	{
	t3lib_extMgm::insertModuleFunction(
		'user_task',
		'tx_branchinfo',
		t3lib_extMgm::extPath($_EXTKEY).'mod_branch_info/class.tx_branchinfo.php',
		'LLL:EXT:user_farm_branches/locallang.xml:mod_branchinfo'
	);
}
?>